package com.yike.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 代理商提现申请表
 *
 * @author Sakura
 * @since 2024-09-23
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "代理商提现申请信息")
public class AgentWithdrawalApplyVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty("代理商id")
    private Long agentId;

    @ApiModelProperty("类型：1支付宝提现")
    private Integer type;

    @ApiModelProperty("代理商编号")
    private String agentNo;

    @ApiModelProperty("代理商名称")
    private String agentName;

    @ApiModelProperty("总分佣金额")
    private BigDecimal totalAmount;

    @ApiModelProperty("可提现金额")
    private BigDecimal withdrawableAmount;

    @ApiModelProperty("提现金额")
    private BigDecimal amount;

    @ApiModelProperty("实际提现金额")
    private BigDecimal realityAmount;

    @ApiModelProperty("剩余提现金额")
    private BigDecimal residueAmount;

    @ApiModelProperty("手续费")
    private BigDecimal commissionAmount;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("状态：0待审核 1通过 2不通过 3已提现 4异常")
    private Integer status;

    @ApiModelProperty("异常备注")
    private String errorRemark;

    @ApiModelProperty("账号")
    private String account;

    @ApiModelProperty("用户姓名（真实）")
    private String userName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
